package com.mcxx.modules.miniSalvation.salary.dao.read;

import com.mcxx.modules.miniSalvation.salary.entity.FamilySalaryEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface FamilySalaryReadDao {


    double getTotalFeeByOrderId(@Param("orderId")String orderId, @Param("curMonth")String curMonth);

    FamilySalaryEntity getFamilySumSalaryByOrderId(@Param("orderId")String orderId);


    List<FamilySalaryEntity> findFamilySalaryByOrderId(@Param("orderId")String orderId);



    Double getFamilySalary(String orderId, String familyId);


    String getStatDateByOrderId(String orderId);


    Integer getFamilySalaryExistByOrderId(@Param("familyId") String familyId, @Param("startDate") String startDate, @Param("orderId") String orderId);


    Integer selectIsSavedByIdcard(@Param("idcard") String idcard,@Param("curMonth")String curMonth);


    Integer selectCountByOrderId(String orderId);

    String getFamilySalaryMaxDate(@Param("orderId") String orderId,
                                  @Param("familyId") String familyId,
                                  @Param("businessType") String businessType);

}
